package com.rectcircle.wechat.exception;

/**
 * 用于请求微信api时，失败的返回码和描述的异常
 * @author RectCircle
 * @version 0.1<br>
 * 2016年7月12日-下午11:30:35<br>
 * Copyright (c) 2016 RectCircle-版权所有<br>
 *
 */
public class ApiRequestErrorException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1595754444900192606L;

	/**
	 * 微信返回码
	 */
	private String retCode;
	
	/**
	 * 错误描述信息
	 */
	private String msgDescription;

	public ApiRequestErrorException(){
		super();
	}
	
	public ApiRequestErrorException(String msg){
		super(msg);
		this.msgDescription = msg;
	}

	public ApiRequestErrorException(String retCode, String msg){
		super(msg);
		this.retCode = retCode;
		this.msgDescription = msg;
	}
	
	
	public String getMsgDescription() {
		return msgDescription;
	}
	
	public String getRetCode() {
		return retCode;
	}


}
